package org.bingo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author CY
 * @since 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BingoPost对象", description="")
@NoArgsConstructor
@AllArgsConstructor
public class BingoPost implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "贴文id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "发布者id")
    private String upId;

    @ApiModelProperty(value = "发布时间")
    private Date upTime;

    @ApiModelProperty(value = "是否审核，1为审核，2未审核")
    private Boolean isCheck;

    @ApiModelProperty(value = "认同数")
    private Integer agree;

    @ApiModelProperty(value = "否定数")
    private Integer disagree;

    @ApiModelProperty(value = "浏览次数")
    private Integer scan;

    @ApiModelProperty(value = "贴文内容")
    private String content;

    @ApiModelProperty(value = "收藏数")
    private Integer save;

    @ApiModelProperty(value = "贴文类型")
    private String type;


}
